---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\Users\andrkot\Dropbox (Frischsenteret)\Mili_madla\Democracy\Final submission\round4\replication\Results\replication_ajps_main.log
  log type:  text
 opened on:   4 Sep 2025, 09:57:02

.  
.  * ---------------------------------------------------------------------
. * 1.  TABLES
. * ---------------------------------------------------------------------
. 
. * Main tables. Stars and format of decimals following AJPS format.
. 
. ** Table 1:
. 
. 
. use "$data\replication_clean.dta", clear

. 
. estimates drop _all

. 
. * Table 1
. foreach var of varlist  military_rule authoritarian_pref political_order ///
> ///
> {
  2. reg  `var' base_auth_a, cl(room) 
  3.          estadd local Controls "No"
  4. su `var' if e(sample)==1 
  5. estadd scalar mean_depvar_c = r(mean)
  6. eststo `var'_corr
  7. }

Linear regression                               Number of obs     =        688
                                                F(1, 148)         =      66.91
                                                Prob > F          =     0.0000
                                                R-squared         =     0.1123
                                                Root MSE          =      .9676

                                 (Std. err. adjusted for 149 clusters in room)
------------------------------------------------------------------------------
             |               Robust
military_r~e | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 base_auth_a |   .3129183   .0382548     8.18   0.000     .2373222    .3885145
       _cons |   2.008303   .1040122    19.31   0.000     1.802762    2.213844
------------------------------------------------------------------------------

added macro:
           e(Controls) : "No"

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
military_r~e |        688    2.796512    1.026229          1          5

added scalar:
      e(mean_depvar_c) =  2.7965116

Linear regression                               Number of obs     =        685
                                                F(1, 148)         =      30.05
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0424
                                                Root MSE          =     1.8179

                                 (Std. err. adjusted for 149 clusters in room)
------------------------------------------------------------------------------
             |               Robust
authoritar~f | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 base_auth_a |   .3470859    .063317     5.48   0.000     .2219637    .4722081
       _cons |   3.047059   .1805921    16.87   0.000     2.690187    3.403931
------------------------------------------------------------------------------

added macro:
           e(Controls) : "No"

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
authoritar~f |        685    3.922628    1.856276          0          8

added scalar:
      e(mean_depvar_c) =  3.9226277

Linear regression                               Number of obs     =        691
                                                F(1, 148)         =       7.62
                                                Prob > F          =     0.0065
                                                R-squared         =     0.0093
                                                Root MSE          =     .45785

                                 (Std. err. adjusted for 149 clusters in room)
------------------------------------------------------------------------------
             |               Robust
political_~r | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
 base_auth_a |   .0402442   .0145804     2.76   0.007     .0114314    .0690569
       _cons |   .5961431   .0390786    15.25   0.000     .5189191    .6733672
------------------------------------------------------------------------------

added macro:
           e(Controls) : "No"

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
political_~r |        691    .6975398    .4596562          0          1

added scalar:
      e(mean_depvar_c) =  .6975398

. 
.                 local varlist ///
> base_auth_a   ///
>  

. cd "$replication"
C:\Users\andrkot\Dropbox (Frischsenteret)\Mili_madla\Democracy\Final submission\round4\replication\Results

. #delimit;
delimiter now ;
.         noisily esttab military_rule_corr authoritarian_pref_corr political_order_corr 
>                 using "Table_1.tex", 
>         style(tex) stats(mean_depvar_c N Controls, labels("Mean in sample" "N" "Controls")  fmt(2 0 2 0)) 
>         starlevels(† 0.10 * 0.05 ** 0.01) b(2) se(2) 
> mtitles("Military rule" "Authoritarian preferences" "Political order")
>                 keep(`varlist') order(`varlist')
>                 varlabels(
>         base_auth_a "Support for authoritarian rule at baseline"
>                         )
>         prehead("\begin{tabular}{l*{12}{l}}" "\hline") posthead(\hline)
>         postfoot("\hline" "\end{tabular}")
>         replace;
(output written to Table_1.tex)

.         #delimit cr
delimiter now cr
.         
. * Pvalues for text: 
. foreach var of varlist auth_a auth_b military_rule authoritarian_pref political_order ///
> ///
> {
  2. pdslasso  `var'  base_oth_r_att  (m_b* tr_fe*) , partial(tr_fe*) cl(room)
  3. }
Partialling out unpenalized controls...
1.  (PDS/CHS) Selecting HD controls for dep var auth_a...
Selected: m_b_a_a_d1_m m_b_a_a_d3_m m_b_a_a_d4_m
2.  (PDS/CHS) Selecting HD controls for exog regressor base_oth_r_att...
Selected: 


Estimation results:

Specification:
Regularization method:                 lasso
Penalty loadings:                      cluster-lasso
Number of observations:                678
Number of clusters:                    135
Exogenous (1):                         base_oth_r_att
High-dim controls (48):                m_b_a_b_d1_m m_b_a_b_d1 m_b_a_b_d2_m m_b_a_b_d2 m_b_a_b_d3_m m_b_a_b_d3 m_b_a_b_d4_m m_b_a_b_d4 m_b_a_a_d1_m m_b_a_a_d1 m_b_a_a_d2_m m_b_a_a_d2 m_b_a_a_d3_m m_b_a_a_d3 m_b_a_a_d4_m m_b_a_a_d4 m_base_female_m
                                       m_base_female m_base_high_pol_interest_m m_base_high_pol_interest m_base_high_grade_m m_base_high_grade m_base_mother_edu_m m_base_mother_edu m_base_father_edu_m m_base_father_edu m_base_plan_edu_m m_base_plan_edu
                                       m_base_high_risk_m m_base_high_risk m_base_high_trust_m m_base_high_trust m_base_vote_m m_base_vote m_base_AP_m m_base_AP m_base_H_m m_base_H m_base_FRP_m m_base_FRP m_base_V_m m_base_V m_base_SV_m m_base_SV
                                       m_base_Other_m m_base_Other m_base_Unknown_m m_base_Unknown
Selected controls (3):                 m_b_a_a_d1_m m_b_a_a_d3_m m_b_a_a_d4_m
Partialled-out controls (11):          tr_fe1 tr_fe2 tr_fe3 tr_fe4 tr_fe5 tr_fe6 tr_fe7 tr_fe8 tr_fe9 tr_fe10 tr_fe11

Structural equation:

OLS using CHS lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
        auth_a | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |   .1504486   .0597505     2.52   0.012     .0333398    .2675575
--------------------------------------------------------------------------------

OLS using CHS post-lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
        auth_a | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |   .1581441   .0572976     2.76   0.006     .0458429    .2704453
--------------------------------------------------------------------------------

OLS with PDS-selected variables and full regressor set
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
        auth_a | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |   .1594913   .0573872     2.78   0.005     .0470144    .2719682
  m_b_a_a_d1_m |   -.886318   .0897974    -9.87   0.000    -1.062318   -.7103183
  m_b_a_a_d3_m |   .5907722   .0820755     7.20   0.000     .4299071    .7516372
  m_b_a_a_d4_m |   1.287365   .0956076    13.47   0.000     1.099977    1.474752
        tr_fe1 |          0  (omitted)
        tr_fe2 |   .2909241   .1233854     2.36   0.018     .0490931    .5327551
        tr_fe3 |   .0523183   .1139415     0.46   0.646    -.1710029    .2756395
        tr_fe4 |    .223031   .1310379     1.70   0.089    -.0337986    .4798605
        tr_fe5 |   .1715136   .1177726     1.46   0.145    -.0593165    .4023436
        tr_fe6 |   .1531095   .1107186     1.38   0.167    -.0638949    .3701139
        tr_fe7 |   .1712968    .115889     1.48   0.139    -.0558415    .3984351
        tr_fe8 |    .044765   .1278064     0.35   0.726    -.2057309    .2952609
        tr_fe9 |   .3005614   .1223102     2.46   0.014     .0608379    .5402849
       tr_fe10 |   .3433339   .1355988     2.53   0.011     .0775651    .6091026
       tr_fe11 |   .1483198    .160875     0.92   0.357    -.1669894     .463629
         _cons |   1.657673   .1878558     8.82   0.000     1.289482    2.025863
--------------------------------------------------------------------------------
Standard errors and test statistics valid for the following variables only:
    base_oth_r_att
------------------------------------------------------------------------------
Partialling out unpenalized controls...
1.  (PDS/CHS) Selecting HD controls for dep var auth_b...
Selected: m_b_a_b_d1_m m_b_a_b_d2_m m_b_a_b_d4_m m_b_a_a_d1_m m_b_a_a_d4_m m_base_high_pol_interest_m
2.  (PDS/CHS) Selecting HD controls for exog regressor base_oth_r_att...
Selected: 


Estimation results:

Specification:
Regularization method:                 lasso
Penalty loadings:                      cluster-lasso
Number of observations:                677
Number of clusters:                    135
Exogenous (1):                         base_oth_r_att
High-dim controls (48):                m_b_a_b_d1_m m_b_a_b_d1 m_b_a_b_d2_m m_b_a_b_d2 m_b_a_b_d3_m m_b_a_b_d3 m_b_a_b_d4_m m_b_a_b_d4 m_b_a_a_d1_m m_b_a_a_d1 m_b_a_a_d2_m m_b_a_a_d2 m_b_a_a_d3_m m_b_a_a_d3 m_b_a_a_d4_m m_b_a_a_d4 m_base_female_m
                                       m_base_female m_base_high_pol_interest_m m_base_high_pol_interest m_base_high_grade_m m_base_high_grade m_base_mother_edu_m m_base_mother_edu m_base_father_edu_m m_base_father_edu m_base_plan_edu_m m_base_plan_edu
                                       m_base_high_risk_m m_base_high_risk m_base_high_trust_m m_base_high_trust m_base_vote_m m_base_vote m_base_AP_m m_base_AP m_base_H_m m_base_H m_base_FRP_m m_base_FRP m_base_V_m m_base_V m_base_SV_m m_base_SV
                                       m_base_Other_m m_base_Other m_base_Unknown_m m_base_Unknown
Selected controls (6):                 m_b_a_b_d1_m m_b_a_b_d2_m m_b_a_b_d4_m m_b_a_a_d1_m m_b_a_a_d4_m m_base_high_pol_interest_m
Partialled-out controls (11):          tr_fe1 tr_fe2 tr_fe3 tr_fe4 tr_fe5 tr_fe6 tr_fe7 tr_fe8 tr_fe9 tr_fe10 tr_fe11

Structural equation:

OLS using CHS lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
        auth_b | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |   .1215553   .0673743     1.80   0.071    -.0104959    .2536066
--------------------------------------------------------------------------------

OLS using CHS post-lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
        auth_b | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |   .1187954   .0665847     1.78   0.074    -.0117081    .2492989
--------------------------------------------------------------------------------

OLS with PDS-selected variables and full regressor set
                                               (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------------------
                           |               Robust
                    auth_b | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------------------+----------------------------------------------------------------
            base_oth_r_att |   .1204638   .0666348     1.81   0.071    -.0101381    .2510657
              m_b_a_b_d1_m |  -.8696158   .1585238    -5.49   0.000    -1.180317   -.5589148
              m_b_a_b_d2_m |   -.471057   .0894973    -5.26   0.000    -.6464685   -.2956455
              m_b_a_b_d4_m |   .1644219   .0940267     1.75   0.080    -.0198669    .3487108
              m_b_a_a_d1_m |   -.504617   .0978901    -5.15   0.000    -.6964781   -.3127559
              m_b_a_a_d4_m |   .3901354   .0862857     4.52   0.000     .2210186    .5592522
m_base_high_pol_interest_m |  -.2099747   .0574012    -3.66   0.000     -.322479   -.0974705
                    tr_fe1 |          0  (omitted)
                    tr_fe2 |   .4311175    .197933     2.18   0.029      .043176    .8190591
                    tr_fe3 |   .0519816   .2062571     0.25   0.801    -.3522748     .456238
                    tr_fe4 |    .345572   .2080841     1.66   0.097    -.0622654    .7534095
                    tr_fe5 |   .2644966   .2121304     1.25   0.212    -.1512713    .6802645
                    tr_fe6 |   .3868841    .191989     2.02   0.044     .0105926    .7631757
                    tr_fe7 |   .3351394   .2029391     1.65   0.099    -.0626141    .7328928
                    tr_fe8 |   .2970963     .20255     1.47   0.142    -.0998943     .694087
                    tr_fe9 |   .4390229    .205252     2.14   0.032     .0367364    .8413095
                   tr_fe10 |   .3228681   .1943195     1.66   0.097    -.0579911    .7037273
                   tr_fe11 |    .137485   .2316352     0.59   0.553    -.3165116    .5914817
                     _cons |    2.42935   .2729155     8.90   0.000     1.894446    2.964255
--------------------------------------------------------------------------------------------
Standard errors and test statistics valid for the following variables only:
    base_oth_r_att
------------------------------------------------------------------------------
Partialling out unpenalized controls...
1.  (PDS/CHS) Selecting HD controls for dep var military_rule...
Selected: m_b_a_a_d1_m m_base_high_pol_interest_m m_base_high_grade_m
2.  (PDS/CHS) Selecting HD controls for exog regressor base_oth_r_att...
Selected: 


Estimation results:

Specification:
Regularization method:                 lasso
Penalty loadings:                      cluster-lasso
Number of observations:                675
Number of clusters:                    135
Exogenous (1):                         base_oth_r_att
High-dim controls (48):                m_b_a_b_d1_m m_b_a_b_d1 m_b_a_b_d2_m m_b_a_b_d2 m_b_a_b_d3_m m_b_a_b_d3 m_b_a_b_d4_m m_b_a_b_d4 m_b_a_a_d1_m m_b_a_a_d1 m_b_a_a_d2_m m_b_a_a_d2 m_b_a_a_d3_m m_b_a_a_d3 m_b_a_a_d4_m m_b_a_a_d4 m_base_female_m
                                       m_base_female m_base_high_pol_interest_m m_base_high_pol_interest m_base_high_grade_m m_base_high_grade m_base_mother_edu_m m_base_mother_edu m_base_father_edu_m m_base_father_edu m_base_plan_edu_m m_base_plan_edu
                                       m_base_high_risk_m m_base_high_risk m_base_high_trust_m m_base_high_trust m_base_vote_m m_base_vote m_base_AP_m m_base_AP m_base_H_m m_base_H m_base_FRP_m m_base_FRP m_base_V_m m_base_V m_base_SV_m m_base_SV
                                       m_base_Other_m m_base_Other m_base_Unknown_m m_base_Unknown
Selected controls (3):                 m_b_a_a_d1_m m_base_high_pol_interest_m m_base_high_grade_m
Partialled-out controls (11):          tr_fe1 tr_fe2 tr_fe3 tr_fe4 tr_fe5 tr_fe6 tr_fe7 tr_fe8 tr_fe9 tr_fe10 tr_fe11

Structural equation:

OLS using CHS lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
 military_rule | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |   .0985743   .0705904     1.40   0.163    -.0397803    .2369288
--------------------------------------------------------------------------------

OLS using CHS post-lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
 military_rule | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |   .0933398   .0707921     1.32   0.187    -.0454102    .2320898
--------------------------------------------------------------------------------

OLS with PDS-selected variables and full regressor set
                                               (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------------------
                           |               Robust
             military_rule | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------------------+----------------------------------------------------------------
            base_oth_r_att |   .0941468   .0716504     1.31   0.189    -.0462855    .2345791
              m_b_a_a_d1_m |  -.7479517   .0859078    -8.71   0.000     -.916328   -.5795754
m_base_high_pol_interest_m |  -.2830682   .0746858    -3.79   0.000    -.4294497   -.1366867
       m_base_high_grade_m |  -.2710284   .0826647    -3.28   0.001    -.4330482   -.1090085
                    tr_fe1 |  -.1817101   .1391066    -1.31   0.191     -.454354    .0909338
                    tr_fe2 |   .1639847   .1323502     1.24   0.215    -.0954168    .4233863
                    tr_fe3 |  -.1372874   .1402793    -0.98   0.328    -.4122297     .137655
                    tr_fe4 |  -.0552981   .1625146    -0.34   0.734    -.3738209    .2632247
                    tr_fe5 |   .0038216   .1782356     0.02   0.983    -.3455137     .353157
                    tr_fe6 |   .0060344   .1734736     0.03   0.972    -.3339676    .3460364
                    tr_fe7 |  -.0779701   .1800655    -0.43   0.665     -.430892    .2749518
                    tr_fe8 |  -.0110006   .1715893    -0.06   0.949    -.3473096    .3253083
                    tr_fe9 |   .3238352   .1527057     2.12   0.034     .0245376    .6231328
                   tr_fe10 |   .1592927   .1568017     1.02   0.310    -.1480329    .4666183
                   tr_fe11 |          0  (omitted)
                     _cons |   2.953274   .2184955    13.52   0.000     2.525031    3.381518
--------------------------------------------------------------------------------------------
Standard errors and test statistics valid for the following variables only:
    base_oth_r_att
------------------------------------------------------------------------------
Partialling out unpenalized controls...
1.  (PDS/CHS) Selecting HD controls for dep var authoritarian_pref...
Selected: m_b_a_a_d1_m m_base_mother_edu_m m_base_FRP_m
2.  (PDS/CHS) Selecting HD controls for exog regressor base_oth_r_att...
Selected: 


Estimation results:

Specification:
Regularization method:                 lasso
Penalty loadings:                      cluster-lasso
Number of observations:                672
Number of clusters:                    135
Exogenous (1):                         base_oth_r_att
High-dim controls (48):                m_b_a_b_d1_m m_b_a_b_d1 m_b_a_b_d2_m m_b_a_b_d2 m_b_a_b_d3_m m_b_a_b_d3 m_b_a_b_d4_m m_b_a_b_d4 m_b_a_a_d1_m m_b_a_a_d1 m_b_a_a_d2_m m_b_a_a_d2 m_b_a_a_d3_m m_b_a_a_d3 m_b_a_a_d4_m m_b_a_a_d4 m_base_female_m
                                       m_base_female m_base_high_pol_interest_m m_base_high_pol_interest m_base_high_grade_m m_base_high_grade m_base_mother_edu_m m_base_mother_edu m_base_father_edu_m m_base_father_edu m_base_plan_edu_m m_base_plan_edu
                                       m_base_high_risk_m m_base_high_risk m_base_high_trust_m m_base_high_trust m_base_vote_m m_base_vote m_base_AP_m m_base_AP m_base_H_m m_base_H m_base_FRP_m m_base_FRP m_base_V_m m_base_V m_base_SV_m m_base_SV
                                       m_base_Other_m m_base_Other m_base_Unknown_m m_base_Unknown
Selected controls (3):                 m_b_a_a_d1_m m_base_mother_edu_m m_base_FRP_m
Partialled-out controls (11):          tr_fe1 tr_fe2 tr_fe3 tr_fe4 tr_fe5 tr_fe6 tr_fe7 tr_fe8 tr_fe9 tr_fe10 tr_fe11

Structural equation:

OLS using CHS lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
authoritaria~f | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |    .035226   .1474441     0.24   0.811    -.2537591     .324211
--------------------------------------------------------------------------------

OLS using CHS post-lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
authoritaria~f | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |    .053564   .1416937     0.38   0.705    -.2241507    .3312786
--------------------------------------------------------------------------------

OLS with PDS-selected variables and full regressor set
                                        (Std. err. adjusted for 135 clusters in room)
-------------------------------------------------------------------------------------
                    |               Robust
 authoritarian_pref | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
--------------------+----------------------------------------------------------------
     base_oth_r_att |   .0538874   .1421087     0.38   0.705    -.2246407    .3324154
       m_b_a_a_d1_m |  -.6207628   .1692816    -3.67   0.000    -.9525486   -.2889769
m_base_mother_edu_m |  -.4371737   .1481025    -2.95   0.003    -.7274492   -.1468982
       m_base_FRP_m |   .7421418   .2128096     3.49   0.000     .3250426    1.159241
             tr_fe1 |   .3710908   .2375075     1.56   0.118    -.0944154     .836597
             tr_fe2 |  -.4028646   .2438462    -1.65   0.099    -.8807942    .0750651
             tr_fe3 |  -.2788603     .34596    -0.81   0.420    -.9569294    .3992089
             tr_fe4 |  -.1683132   .2930479    -0.57   0.566    -.7426765      .40605
             tr_fe5 |   .3599308   .4687348     0.77   0.443    -.5587726    1.278634
             tr_fe6 |  -.6179712   .2768294    -2.23   0.026    -1.160547   -.0753955
             tr_fe7 |  -.2861614   .3085292    -0.93   0.354    -.8908674    .3185446
             tr_fe8 |   .2135716    .333077     0.64   0.521    -.4392474    .8663905
             tr_fe9 |   .4010275   .2939565     1.36   0.172    -.1751166    .9771716
            tr_fe10 |   .0996564   .2868977     0.35   0.728    -.4626527    .6619656
            tr_fe11 |          0  (omitted)
              _cons |   4.211058   .4421775     9.52   0.000     3.344407     5.07771
-------------------------------------------------------------------------------------
Standard errors and test statistics valid for the following variables only:
    base_oth_r_att
------------------------------------------------------------------------------
Partialling out unpenalized controls...
1.  (PDS/CHS) Selecting HD controls for dep var political_order...
Selected: 
2.  (PDS/CHS) Selecting HD controls for exog regressor base_oth_r_att...
Selected: 


Estimation results:

Specification:
Regularization method:                 lasso
Penalty loadings:                      cluster-lasso
Number of observations:                678
Number of clusters:                    135
Exogenous (1):                         base_oth_r_att
High-dim controls (48):                m_b_a_b_d1_m m_b_a_b_d1 m_b_a_b_d2_m m_b_a_b_d2 m_b_a_b_d3_m m_b_a_b_d3 m_b_a_b_d4_m m_b_a_b_d4 m_b_a_a_d1_m m_b_a_a_d1 m_b_a_a_d2_m m_b_a_a_d2 m_b_a_a_d3_m m_b_a_a_d3 m_b_a_a_d4_m m_b_a_a_d4 m_base_female_m
                                       m_base_female m_base_high_pol_interest_m m_base_high_pol_interest m_base_high_grade_m m_base_high_grade m_base_mother_edu_m m_base_mother_edu m_base_father_edu_m m_base_father_edu m_base_plan_edu_m m_base_plan_edu
                                       m_base_high_risk_m m_base_high_risk m_base_high_trust_m m_base_high_trust m_base_vote_m m_base_vote m_base_AP_m m_base_AP m_base_H_m m_base_H m_base_FRP_m m_base_FRP m_base_V_m m_base_V m_base_SV_m m_base_SV
                                       m_base_Other_m m_base_Other m_base_Unknown_m m_base_Unknown
Selected controls (0):
Partialled-out controls (11):          tr_fe1 tr_fe2 tr_fe3 tr_fe4 tr_fe5 tr_fe6 tr_fe7 tr_fe8 tr_fe9 tr_fe10 tr_fe11

Structural equation:

OLS using CHS lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
political_or~r | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |  -.0284494   .0317828    -0.90   0.371    -.0907425    .0338438
--------------------------------------------------------------------------------

OLS using CHS post-lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
political_or~r | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |  -.0284494   .0317828    -0.90   0.371    -.0907425    .0338438
--------------------------------------------------------------------------------

OLS with PDS-selected variables and full regressor set
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
political_or~r | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |  -.0284494   .0317828    -0.90   0.371    -.0907425    .0338438
        tr_fe1 |          0  (omitted)
        tr_fe2 |  -.1125364   .0750946    -1.50   0.134    -.2597191    .0346462
        tr_fe3 |  -.0643137   .0768716    -0.84   0.403    -.2149794    .0863519
        tr_fe4 |  -.1294481   .0733735    -1.76   0.078    -.2732575    .0143614
        tr_fe5 |  -.1317632   .0910923    -1.45   0.148    -.3103008    .0467743
        tr_fe6 |  -.1208748   .0826209    -1.46   0.143    -.2828088    .0410592
        tr_fe7 |  -.2874974   .1030519    -2.79   0.005    -.4894755   -.0855194
        tr_fe8 |  -.1728826   .0998309    -1.73   0.083    -.3685477    .0227824
        tr_fe9 |   -.002273   .0745883    -0.03   0.976    -.1484634    .1439175
       tr_fe10 |  -.0749508   .0813462    -0.92   0.357    -.2343865    .0844849
       tr_fe11 |  -.1535144   .1046005    -1.47   0.142    -.3585277    .0514989
         _cons |   .8840708    .115248     7.67   0.000     .6581889    1.109953
--------------------------------------------------------------------------------
Standard errors and test statistics valid for the following variables only:
    base_oth_r_att
------------------------------------------------------------------------------

. 
. ** Table 2:
. 
. estimates drop _all

. 
. 
. foreach var of varlist auth_a auth_b military_rule authoritarian_pref political_order ///
> ///
> {
  2. pdslasso  `var'  base_oth_r_att  (m_b* tr_fe*) , partial(tr_fe*) cl(room)
  3.          estadd local Controls "Lasso"
  4. su `var' if e(sample)==1 
  5. estadd scalar mean_depvar_c = r(mean)
  6. eststo `var'_pds
  7. }
Partialling out unpenalized controls...
1.  (PDS/CHS) Selecting HD controls for dep var auth_a...
Selected: m_b_a_a_d1_m m_b_a_a_d3_m m_b_a_a_d4_m
2.  (PDS/CHS) Selecting HD controls for exog regressor base_oth_r_att...
Selected: 


Estimation results:

Specification:
Regularization method:                 lasso
Penalty loadings:                      cluster-lasso
Number of observations:                678
Number of clusters:                    135
Exogenous (1):                         base_oth_r_att
High-dim controls (48):                m_b_a_b_d1_m m_b_a_b_d1 m_b_a_b_d2_m m_b_a_b_d2 m_b_a_b_d3_m m_b_a_b_d3 m_b_a_b_d4_m m_b_a_b_d4 m_b_a_a_d1_m m_b_a_a_d1 m_b_a_a_d2_m m_b_a_a_d2 m_b_a_a_d3_m m_b_a_a_d3 m_b_a_a_d4_m m_b_a_a_d4 m_base_female_m
                                       m_base_female m_base_high_pol_interest_m m_base_high_pol_interest m_base_high_grade_m m_base_high_grade m_base_mother_edu_m m_base_mother_edu m_base_father_edu_m m_base_father_edu m_base_plan_edu_m m_base_plan_edu
                                       m_base_high_risk_m m_base_high_risk m_base_high_trust_m m_base_high_trust m_base_vote_m m_base_vote m_base_AP_m m_base_AP m_base_H_m m_base_H m_base_FRP_m m_base_FRP m_base_V_m m_base_V m_base_SV_m m_base_SV
                                       m_base_Other_m m_base_Other m_base_Unknown_m m_base_Unknown
Selected controls (3):                 m_b_a_a_d1_m m_b_a_a_d3_m m_b_a_a_d4_m
Partialled-out controls (11):          tr_fe1 tr_fe2 tr_fe3 tr_fe4 tr_fe5 tr_fe6 tr_fe7 tr_fe8 tr_fe9 tr_fe10 tr_fe11

Structural equation:

OLS using CHS lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
        auth_a | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |   .1504486   .0597505     2.52   0.012     .0333398    .2675575
--------------------------------------------------------------------------------

OLS using CHS post-lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
        auth_a | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |   .1581441   .0572976     2.76   0.006     .0458429    .2704453
--------------------------------------------------------------------------------

OLS with PDS-selected variables and full regressor set
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
        auth_a | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |   .1594913   .0573872     2.78   0.005     .0470144    .2719682
  m_b_a_a_d1_m |   -.886318   .0897974    -9.87   0.000    -1.062318   -.7103183
  m_b_a_a_d3_m |   .5907722   .0820755     7.20   0.000     .4299071    .7516372
  m_b_a_a_d4_m |   1.287365   .0956076    13.47   0.000     1.099977    1.474752
        tr_fe1 |          0  (omitted)
        tr_fe2 |   .2909241   .1233854     2.36   0.018     .0490931    .5327551
        tr_fe3 |   .0523183   .1139415     0.46   0.646    -.1710029    .2756395
        tr_fe4 |    .223031   .1310379     1.70   0.089    -.0337986    .4798605
        tr_fe5 |   .1715136   .1177726     1.46   0.145    -.0593165    .4023436
        tr_fe6 |   .1531095   .1107186     1.38   0.167    -.0638949    .3701139
        tr_fe7 |   .1712968    .115889     1.48   0.139    -.0558415    .3984351
        tr_fe8 |    .044765   .1278064     0.35   0.726    -.2057309    .2952609
        tr_fe9 |   .3005614   .1223102     2.46   0.014     .0608379    .5402849
       tr_fe10 |   .3433339   .1355988     2.53   0.011     .0775651    .6091026
       tr_fe11 |   .1483198    .160875     0.92   0.357    -.1669894     .463629
         _cons |   1.657673   .1878558     8.82   0.000     1.289482    2.025863
--------------------------------------------------------------------------------
Standard errors and test statistics valid for the following variables only:
    base_oth_r_att
------------------------------------------------------------------------------

added macro:
           e(Controls) : "Lasso"

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
      auth_a |        678     2.49705    1.104238          1          5

added scalar:
      e(mean_depvar_c) =  2.4970501
Partialling out unpenalized controls...
1.  (PDS/CHS) Selecting HD controls for dep var auth_b...
Selected: m_b_a_b_d1_m m_b_a_b_d2_m m_b_a_b_d4_m m_b_a_a_d1_m m_b_a_a_d4_m m_base_high_pol_interest_m
2.  (PDS/CHS) Selecting HD controls for exog regressor base_oth_r_att...
Selected: 


Estimation results:

Specification:
Regularization method:                 lasso
Penalty loadings:                      cluster-lasso
Number of observations:                677
Number of clusters:                    135
Exogenous (1):                         base_oth_r_att
High-dim controls (48):                m_b_a_b_d1_m m_b_a_b_d1 m_b_a_b_d2_m m_b_a_b_d2 m_b_a_b_d3_m m_b_a_b_d3 m_b_a_b_d4_m m_b_a_b_d4 m_b_a_a_d1_m m_b_a_a_d1 m_b_a_a_d2_m m_b_a_a_d2 m_b_a_a_d3_m m_b_a_a_d3 m_b_a_a_d4_m m_b_a_a_d4 m_base_female_m
                                       m_base_female m_base_high_pol_interest_m m_base_high_pol_interest m_base_high_grade_m m_base_high_grade m_base_mother_edu_m m_base_mother_edu m_base_father_edu_m m_base_father_edu m_base_plan_edu_m m_base_plan_edu
                                       m_base_high_risk_m m_base_high_risk m_base_high_trust_m m_base_high_trust m_base_vote_m m_base_vote m_base_AP_m m_base_AP m_base_H_m m_base_H m_base_FRP_m m_base_FRP m_base_V_m m_base_V m_base_SV_m m_base_SV
                                       m_base_Other_m m_base_Other m_base_Unknown_m m_base_Unknown
Selected controls (6):                 m_b_a_b_d1_m m_b_a_b_d2_m m_b_a_b_d4_m m_b_a_a_d1_m m_b_a_a_d4_m m_base_high_pol_interest_m
Partialled-out controls (11):          tr_fe1 tr_fe2 tr_fe3 tr_fe4 tr_fe5 tr_fe6 tr_fe7 tr_fe8 tr_fe9 tr_fe10 tr_fe11

Structural equation:

OLS using CHS lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
        auth_b | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |   .1215553   .0673743     1.80   0.071    -.0104959    .2536066
--------------------------------------------------------------------------------

OLS using CHS post-lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
        auth_b | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |   .1187954   .0665847     1.78   0.074    -.0117081    .2492989
--------------------------------------------------------------------------------

OLS with PDS-selected variables and full regressor set
                                               (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------------------
                           |               Robust
                    auth_b | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------------------+----------------------------------------------------------------
            base_oth_r_att |   .1204638   .0666348     1.81   0.071    -.0101381    .2510657
              m_b_a_b_d1_m |  -.8696158   .1585238    -5.49   0.000    -1.180317   -.5589148
              m_b_a_b_d2_m |   -.471057   .0894973    -5.26   0.000    -.6464685   -.2956455
              m_b_a_b_d4_m |   .1644219   .0940267     1.75   0.080    -.0198669    .3487108
              m_b_a_a_d1_m |   -.504617   .0978901    -5.15   0.000    -.6964781   -.3127559
              m_b_a_a_d4_m |   .3901354   .0862857     4.52   0.000     .2210186    .5592522
m_base_high_pol_interest_m |  -.2099747   .0574012    -3.66   0.000     -.322479   -.0974705
                    tr_fe1 |          0  (omitted)
                    tr_fe2 |   .4311175    .197933     2.18   0.029      .043176    .8190591
                    tr_fe3 |   .0519816   .2062571     0.25   0.801    -.3522748     .456238
                    tr_fe4 |    .345572   .2080841     1.66   0.097    -.0622654    .7534095
                    tr_fe5 |   .2644966   .2121304     1.25   0.212    -.1512713    .6802645
                    tr_fe6 |   .3868841    .191989     2.02   0.044     .0105926    .7631757
                    tr_fe7 |   .3351394   .2029391     1.65   0.099    -.0626141    .7328928
                    tr_fe8 |   .2970963     .20255     1.47   0.142    -.0998943     .694087
                    tr_fe9 |   .4390229    .205252     2.14   0.032     .0367364    .8413095
                   tr_fe10 |   .3228681   .1943195     1.66   0.097    -.0579911    .7037273
                   tr_fe11 |    .137485   .2316352     0.59   0.553    -.3165116    .5914817
                     _cons |    2.42935   .2729155     8.90   0.000     1.894446    2.964255
--------------------------------------------------------------------------------------------
Standard errors and test statistics valid for the following variables only:
    base_oth_r_att
------------------------------------------------------------------------------

added macro:
           e(Controls) : "Lasso"

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
      auth_b |        677    2.716396    1.047361          1          5

added scalar:
      e(mean_depvar_c) =  2.7163959
Partialling out unpenalized controls...
1.  (PDS/CHS) Selecting HD controls for dep var military_rule...
Selected: m_b_a_a_d1_m m_base_high_pol_interest_m m_base_high_grade_m
2.  (PDS/CHS) Selecting HD controls for exog regressor base_oth_r_att...
Selected: 


Estimation results:

Specification:
Regularization method:                 lasso
Penalty loadings:                      cluster-lasso
Number of observations:                675
Number of clusters:                    135
Exogenous (1):                         base_oth_r_att
High-dim controls (48):                m_b_a_b_d1_m m_b_a_b_d1 m_b_a_b_d2_m m_b_a_b_d2 m_b_a_b_d3_m m_b_a_b_d3 m_b_a_b_d4_m m_b_a_b_d4 m_b_a_a_d1_m m_b_a_a_d1 m_b_a_a_d2_m m_b_a_a_d2 m_b_a_a_d3_m m_b_a_a_d3 m_b_a_a_d4_m m_b_a_a_d4 m_base_female_m
                                       m_base_female m_base_high_pol_interest_m m_base_high_pol_interest m_base_high_grade_m m_base_high_grade m_base_mother_edu_m m_base_mother_edu m_base_father_edu_m m_base_father_edu m_base_plan_edu_m m_base_plan_edu
                                       m_base_high_risk_m m_base_high_risk m_base_high_trust_m m_base_high_trust m_base_vote_m m_base_vote m_base_AP_m m_base_AP m_base_H_m m_base_H m_base_FRP_m m_base_FRP m_base_V_m m_base_V m_base_SV_m m_base_SV
                                       m_base_Other_m m_base_Other m_base_Unknown_m m_base_Unknown
Selected controls (3):                 m_b_a_a_d1_m m_base_high_pol_interest_m m_base_high_grade_m
Partialled-out controls (11):          tr_fe1 tr_fe2 tr_fe3 tr_fe4 tr_fe5 tr_fe6 tr_fe7 tr_fe8 tr_fe9 tr_fe10 tr_fe11

Structural equation:

OLS using CHS lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
 military_rule | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |   .0985743   .0705904     1.40   0.163    -.0397803    .2369288
--------------------------------------------------------------------------------

OLS using CHS post-lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
 military_rule | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |   .0933398   .0707921     1.32   0.187    -.0454102    .2320898
--------------------------------------------------------------------------------

OLS with PDS-selected variables and full regressor set
                                               (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------------------
                           |               Robust
             military_rule | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------------------+----------------------------------------------------------------
            base_oth_r_att |   .0941468   .0716504     1.31   0.189    -.0462855    .2345791
              m_b_a_a_d1_m |  -.7479517   .0859078    -8.71   0.000     -.916328   -.5795754
m_base_high_pol_interest_m |  -.2830682   .0746858    -3.79   0.000    -.4294497   -.1366867
       m_base_high_grade_m |  -.2710284   .0826647    -3.28   0.001    -.4330482   -.1090085
                    tr_fe1 |  -.1817101   .1391066    -1.31   0.191     -.454354    .0909338
                    tr_fe2 |   .1639847   .1323502     1.24   0.215    -.0954168    .4233863
                    tr_fe3 |  -.1372874   .1402793    -0.98   0.328    -.4122297     .137655
                    tr_fe4 |  -.0552981   .1625146    -0.34   0.734    -.3738209    .2632247
                    tr_fe5 |   .0038216   .1782356     0.02   0.983    -.3455137     .353157
                    tr_fe6 |   .0060344   .1734736     0.03   0.972    -.3339676    .3460364
                    tr_fe7 |  -.0779701   .1800655    -0.43   0.665     -.430892    .2749518
                    tr_fe8 |  -.0110006   .1715893    -0.06   0.949    -.3473096    .3253083
                    tr_fe9 |   .3238352   .1527057     2.12   0.034     .0245376    .6231328
                   tr_fe10 |   .1592927   .1568017     1.02   0.310    -.1480329    .4666183
                   tr_fe11 |          0  (omitted)
                     _cons |   2.953274   .2184955    13.52   0.000     2.525031    3.381518
--------------------------------------------------------------------------------------------
Standard errors and test statistics valid for the following variables only:
    base_oth_r_att
------------------------------------------------------------------------------

added macro:
           e(Controls) : "Lasso"

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
military_r~e |        675    2.786667    1.027284          1          5

added scalar:
      e(mean_depvar_c) =  2.7866667
Partialling out unpenalized controls...
1.  (PDS/CHS) Selecting HD controls for dep var authoritarian_pref...
Selected: m_b_a_a_d1_m m_base_mother_edu_m m_base_FRP_m
2.  (PDS/CHS) Selecting HD controls for exog regressor base_oth_r_att...
Selected: 


Estimation results:

Specification:
Regularization method:                 lasso
Penalty loadings:                      cluster-lasso
Number of observations:                672
Number of clusters:                    135
Exogenous (1):                         base_oth_r_att
High-dim controls (48):                m_b_a_b_d1_m m_b_a_b_d1 m_b_a_b_d2_m m_b_a_b_d2 m_b_a_b_d3_m m_b_a_b_d3 m_b_a_b_d4_m m_b_a_b_d4 m_b_a_a_d1_m m_b_a_a_d1 m_b_a_a_d2_m m_b_a_a_d2 m_b_a_a_d3_m m_b_a_a_d3 m_b_a_a_d4_m m_b_a_a_d4 m_base_female_m
                                       m_base_female m_base_high_pol_interest_m m_base_high_pol_interest m_base_high_grade_m m_base_high_grade m_base_mother_edu_m m_base_mother_edu m_base_father_edu_m m_base_father_edu m_base_plan_edu_m m_base_plan_edu
                                       m_base_high_risk_m m_base_high_risk m_base_high_trust_m m_base_high_trust m_base_vote_m m_base_vote m_base_AP_m m_base_AP m_base_H_m m_base_H m_base_FRP_m m_base_FRP m_base_V_m m_base_V m_base_SV_m m_base_SV
                                       m_base_Other_m m_base_Other m_base_Unknown_m m_base_Unknown
Selected controls (3):                 m_b_a_a_d1_m m_base_mother_edu_m m_base_FRP_m
Partialled-out controls (11):          tr_fe1 tr_fe2 tr_fe3 tr_fe4 tr_fe5 tr_fe6 tr_fe7 tr_fe8 tr_fe9 tr_fe10 tr_fe11

Structural equation:

OLS using CHS lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
authoritaria~f | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |    .035226   .1474441     0.24   0.811    -.2537591     .324211
--------------------------------------------------------------------------------

OLS using CHS post-lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
authoritaria~f | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |    .053564   .1416937     0.38   0.705    -.2241507    .3312786
--------------------------------------------------------------------------------

OLS with PDS-selected variables and full regressor set
                                        (Std. err. adjusted for 135 clusters in room)
-------------------------------------------------------------------------------------
                    |               Robust
 authoritarian_pref | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
--------------------+----------------------------------------------------------------
     base_oth_r_att |   .0538874   .1421087     0.38   0.705    -.2246407    .3324154
       m_b_a_a_d1_m |  -.6207628   .1692816    -3.67   0.000    -.9525486   -.2889769
m_base_mother_edu_m |  -.4371737   .1481025    -2.95   0.003    -.7274492   -.1468982
       m_base_FRP_m |   .7421418   .2128096     3.49   0.000     .3250426    1.159241
             tr_fe1 |   .3710908   .2375075     1.56   0.118    -.0944154     .836597
             tr_fe2 |  -.4028646   .2438462    -1.65   0.099    -.8807942    .0750651
             tr_fe3 |  -.2788603     .34596    -0.81   0.420    -.9569294    .3992089
             tr_fe4 |  -.1683132   .2930479    -0.57   0.566    -.7426765      .40605
             tr_fe5 |   .3599308   .4687348     0.77   0.443    -.5587726    1.278634
             tr_fe6 |  -.6179712   .2768294    -2.23   0.026    -1.160547   -.0753955
             tr_fe7 |  -.2861614   .3085292    -0.93   0.354    -.8908674    .3185446
             tr_fe8 |   .2135716    .333077     0.64   0.521    -.4392474    .8663905
             tr_fe9 |   .4010275   .2939565     1.36   0.172    -.1751166    .9771716
            tr_fe10 |   .0996564   .2868977     0.35   0.728    -.4626527    .6619656
            tr_fe11 |          0  (omitted)
              _cons |   4.211058   .4421775     9.52   0.000     3.344407     5.07771
-------------------------------------------------------------------------------------
Standard errors and test statistics valid for the following variables only:
    base_oth_r_att
------------------------------------------------------------------------------

added macro:
           e(Controls) : "Lasso"

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
authoritar~f |        672    3.919643    1.855294          0          8

added scalar:
      e(mean_depvar_c) =  3.9196429
Partialling out unpenalized controls...
1.  (PDS/CHS) Selecting HD controls for dep var political_order...
Selected: 
2.  (PDS/CHS) Selecting HD controls for exog regressor base_oth_r_att...
Selected: 


Estimation results:

Specification:
Regularization method:                 lasso
Penalty loadings:                      cluster-lasso
Number of observations:                678
Number of clusters:                    135
Exogenous (1):                         base_oth_r_att
High-dim controls (48):                m_b_a_b_d1_m m_b_a_b_d1 m_b_a_b_d2_m m_b_a_b_d2 m_b_a_b_d3_m m_b_a_b_d3 m_b_a_b_d4_m m_b_a_b_d4 m_b_a_a_d1_m m_b_a_a_d1 m_b_a_a_d2_m m_b_a_a_d2 m_b_a_a_d3_m m_b_a_a_d3 m_b_a_a_d4_m m_b_a_a_d4 m_base_female_m
                                       m_base_female m_base_high_pol_interest_m m_base_high_pol_interest m_base_high_grade_m m_base_high_grade m_base_mother_edu_m m_base_mother_edu m_base_father_edu_m m_base_father_edu m_base_plan_edu_m m_base_plan_edu
                                       m_base_high_risk_m m_base_high_risk m_base_high_trust_m m_base_high_trust m_base_vote_m m_base_vote m_base_AP_m m_base_AP m_base_H_m m_base_H m_base_FRP_m m_base_FRP m_base_V_m m_base_V m_base_SV_m m_base_SV
                                       m_base_Other_m m_base_Other m_base_Unknown_m m_base_Unknown
Selected controls (0):
Partialled-out controls (11):          tr_fe1 tr_fe2 tr_fe3 tr_fe4 tr_fe5 tr_fe6 tr_fe7 tr_fe8 tr_fe9 tr_fe10 tr_fe11

Structural equation:

OLS using CHS lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
political_or~r | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |  -.0284494   .0317828    -0.90   0.371    -.0907425    .0338438
--------------------------------------------------------------------------------

OLS using CHS post-lasso-orthogonalized vars
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
political_or~r | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |  -.0284494   .0317828    -0.90   0.371    -.0907425    .0338438
--------------------------------------------------------------------------------

OLS with PDS-selected variables and full regressor set
                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
political_or~r | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |  -.0284494   .0317828    -0.90   0.371    -.0907425    .0338438
        tr_fe1 |          0  (omitted)
        tr_fe2 |  -.1125364   .0750946    -1.50   0.134    -.2597191    .0346462
        tr_fe3 |  -.0643137   .0768716    -0.84   0.403    -.2149794    .0863519
        tr_fe4 |  -.1294481   .0733735    -1.76   0.078    -.2732575    .0143614
        tr_fe5 |  -.1317632   .0910923    -1.45   0.148    -.3103008    .0467743
        tr_fe6 |  -.1208748   .0826209    -1.46   0.143    -.2828088    .0410592
        tr_fe7 |  -.2874974   .1030519    -2.79   0.005    -.4894755   -.0855194
        tr_fe8 |  -.1728826   .0998309    -1.73   0.083    -.3685477    .0227824
        tr_fe9 |   -.002273   .0745883    -0.03   0.976    -.1484634    .1439175
       tr_fe10 |  -.0749508   .0813462    -0.92   0.357    -.2343865    .0844849
       tr_fe11 |  -.1535144   .1046005    -1.47   0.142    -.3585277    .0514989
         _cons |   .8840708    .115248     7.67   0.000     .6581889    1.109953
--------------------------------------------------------------------------------
Standard errors and test statistics valid for the following variables only:
    base_oth_r_att
------------------------------------------------------------------------------

added macro:
           e(Controls) : "Lasso"

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
political_~r |        678      .70059    .4583378          0          1

added scalar:
      e(mean_depvar_c) =  .70058997

. 
. 
.                                 local varlist ///
>         base_oth_r_att   ///
>          

.         cd "$replication"
C:\Users\andrkot\Dropbox (Frischsenteret)\Mili_madla\Democracy\Final submission\round4\replication\Results

.         #delimit;
delimiter now ;
.                 noisily esttab auth_a_pds auth_b_pds
>                         using "Table_2.tex", 
>                 style(tex) stats(mean_depvar_c N Controls, labels("Mean in sample" "N" "Controls")  fmt(2 0 2 0)) 
>         starlevels(† 0.10 * 0.05 ** 0.01) b(2) se(2) 
>         mtitles("Support for authoritarian rule" "Beliefs about support for authoritarian rule")
>                         keep(`varlist') order(`varlist')
>                         varlabels(
>                 base_oth_r_att "Support for authoritarian rule in the room"
>                                 )
>                 prehead("\begin{tabular}{l*{12}{l}}" "\hline") posthead(\hline)
>                 postfoot("\hline" "\end{tabular}")
>                 replace;
(output written to Table_2.tex)

.                 #delimit cr
delimiter now cr
. 
. * add p-value of RI:
. * column 1:             
. ritest base_oth_r_att _b[base_oth_r_att],  seed(19801215) reps(1000) strata(troop): reg auth_a base_oth_r_att  tr_fe*  m_b_a_a_d1_m m_b_a_a_d3_m m_b_a_a_d4_m, cl(room)
(running regress on estimation sample)
note: tr_fe11 omitted because of collinearity.

Linear regression                               Number of obs     =        678
                                                F(14, 134)        =      44.86
                                                Prob > F          =     0.0000
                                                R-squared         =     0.4471
                                                Root MSE          =     .82972

                                   (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------
               |               Robust
        auth_a | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
---------------+----------------------------------------------------------------
base_oth_r_att |   .1594913   .0582059     2.74   0.007     .0443701    .2746125
        tr_fe1 |  -.1483198   .1631701    -0.91   0.365    -.4710419    .1744023
        tr_fe2 |   .1426043   .1733667     0.82   0.412    -.2002848    .4854934
        tr_fe3 |  -.0960015   .1654251    -0.58   0.563    -.4231835    .2311804
        tr_fe4 |   .0747112   .1787479     0.42   0.677    -.2788211    .4282435
        tr_fe5 |   .0231938   .1705208     0.14   0.892    -.3140667    .3604542
        tr_fe6 |   .0047897   .1655638     0.03   0.977    -.3226666     .332246
        tr_fe7 |    .022977   .1689319     0.14   0.892    -.3111408    .3570948
        tr_fe8 |  -.1035548   .1769078    -0.59   0.559    -.4534477     .246338
        tr_fe9 |   .1522416   .1717944     0.89   0.377    -.1875379    .4920211
       tr_fe10 |   .1950141   .1813734     1.08   0.284    -.1637109    .5537391
       tr_fe11 |          0  (omitted)
  m_b_a_a_d1_m |   -.886318   .0910785    -9.73   0.000    -1.066455   -.7061806
  m_b_a_a_d3_m |   .5907722   .0832464     7.10   0.000     .4261252    .7554191
  m_b_a_a_d4_m |   1.287365   .0969716    13.28   0.000     1.095572    1.479158
         _cons |   1.805992   .2161889     8.35   0.000     1.378408    2.233576
--------------------------------------------------------------------------------

Resampling replications (1,000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
.................................................. 1,000

      Command: regress auth_a base_oth_r_att tr_fe* m_b_a_a_d1_m m_b_a_a_d3_m m_b_a_a_d4_m, cl(room)
        _pm_1: _b[base_oth_r_att]
  res. var(s):  base_oth_r_att
   Resampling:  Permuting base_oth_r_att
Clust. var(s):  __000000
     Clusters:  692
Strata var(s):  troop
       Strata:  12

------------------------------------------------------------------------------
T            |     T(obs)       c       n   p=c/n   SE(p) [95% Conf. Interval]
-------------+----------------------------------------------------------------
       _pm_1 |   .1594913       8    1000  0.0080  0.0028    .00346    .015702
------------------------------------------------------------------------------
Note: Confidence interval is with respect to p=c/n.
Note: c = #{|T| >= |T(obs)|}

. 
. /*
> p=c/n= 0.0080
> ------------------------------------------------------------------------------
> T            |     T(obs)       c       n   p=c/n   SE(p) [95% Conf. Interval]
> -------------+----------------------------------------------------------------
>        _pm_1 |   .1594913       8    1000  0.0080  0.0028    .00346    .015702
> ------------------------------------------------------------------------------
>            */
.            
. * Column 2: 
. ritest base_oth_r_att _b[base_oth_r_att],  seed(19801215) reps(1000) strata(troop): reg auth_b base_oth_r_att  tr_fe* m_b_a_b_d1_m  m_b_a_b_d2_m m_b_a_b_d4_m  m_b_a_a_d1_m  m_b_a_a_d4_m m_base_high_pol_interest_m, cl(room)
(running regress on estimation sample)
note: tr_fe1 omitted because of collinearity.

Linear regression                               Number of obs     =        677
                                                F(17, 134)        =      21.57
                                                Prob > F          =     0.0000
                                                R-squared         =     0.3490
                                                Root MSE          =     .85589

                                               (Std. err. adjusted for 135 clusters in room)
--------------------------------------------------------------------------------------------
                           |               Robust
                    auth_b | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
---------------------------+----------------------------------------------------------------
            base_oth_r_att |   .1204638   .0677402     1.78   0.078    -.0135145    .2544421
                    tr_fe1 |          0  (omitted)
                    tr_fe2 |   .4311175   .2012164     2.14   0.034     .0331466    .8290885
                    tr_fe3 |   .0519816   .2096785     0.25   0.805     -.362726    .4666892
                    tr_fe4 |    .345572   .2115359     1.63   0.105    -.0728091    .7639532
                    tr_fe5 |   .2644966   .2156493     1.23   0.222    -.1620201    .6910133
                    tr_fe6 |   .3868841   .1951738     1.98   0.049     .0008644    .7729039
                    tr_fe7 |   .3351394   .2063056     1.62   0.107    -.0728971    .7431758
                    tr_fe8 |   .2970963   .2059099     1.44   0.151    -.1101577    .7043503
                    tr_fe9 |   .4390229   .2086568     2.10   0.037     .0263361    .8517098
                   tr_fe10 |   .3228681   .1975429     1.63   0.105    -.0678374    .7135736
                   tr_fe11 |    .137485   .2354776     0.58   0.560    -.3282487    .6032188
              m_b_a_b_d1_m |  -.8696158   .1611535    -5.40   0.000    -1.188349   -.5508823
              m_b_a_b_d2_m |   -.471057   .0909819    -5.18   0.000    -.6510034   -.2911106
              m_b_a_b_d4_m |   .1644219   .0955864     1.72   0.088    -.0246313    .3534752
              m_b_a_a_d1_m |   -.504617   .0995139    -5.07   0.000    -.7014382   -.3077957
              m_b_a_a_d4_m |   .3901354    .087717     4.45   0.000     .2166464    .5636243
m_base_high_pol_interest_m |  -.2099747   .0583534    -3.60   0.000    -.3253875    -.094562
                     _cons |    2.42935   .2774427     8.76   0.000     1.880617    2.978083
--------------------------------------------------------------------------------------------

Resampling replications (1,000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
.................................................. 1,000

      Command: regress auth_b base_oth_r_att tr_fe* m_b_a_b_d1_m m_b_a_b_d2_m m_b_a_b_d4_m m_b_a_a_d1_m m_b_a_a_d4_m m_base_high_pol_interest_m, cl(room)
        _pm_1: _b[base_oth_r_att]
  res. var(s):  base_oth_r_att
   Resampling:  Permuting base_oth_r_att
Clust. var(s):  __000000
     Clusters:  692
Strata var(s):  troop
       Strata:  12

------------------------------------------------------------------------------
T            |     T(obs)       c       n   p=c/n   SE(p) [95% Conf. Interval]
-------------+----------------------------------------------------------------
       _pm_1 |   .1204638      38    1000  0.0380  0.0060  .0270288   .0517871
------------------------------------------------------------------------------
Note: Confidence interval is with respect to p=c/n.
Note: c = #{|T| >= |T(obs)|}

. 
. 
. /*
> p=c/n= 0.0380
> 
> ------------------------------------------------------------------------------
> T            |     T(obs)       c       n   p=c/n   SE(p) [95% Conf. Interval]
> -------------+----------------------------------------------------------------
>        _pm_1 |   .1204638      38    1000  0.0380  0.0060  .0270288   .0517871
> ------------------------------------------------------------------------------
> 
>            */
. 
.                 
. ** Table 3:
. 
. 
. estimates drop _all

. 
. 
. 
. 
. foreach var of varlist auth_a2 auth_b2   ///
> ///
> {
  2. pdslasso  `var'  authoritarian_t  (e_b_* e_a_* m_b* tr_fe*) , robust
  3.          estadd local Controls "Lasso"
  4. su `var' if e(sample)==1 
  5. estadd scalar mean_depvar_c = r(mean)
  6. eststo `var'_v_pds
  7. }
1.  (PDS/CHS) Selecting HD controls for dep var auth_a2...
Selected: e_b_1 e_b_4 e_b_1_m e_b_4_m e_a_1 e_a_3 e_a_4 m_b_a_a_d1_m
2.  (PDS/CHS) Selecting HD controls for exog regressor authoritarian_t...
Selected: 


Estimation results:

Specification:
Regularization method:                 lasso
Penalty loadings:                      heteroskedastic
Number of observations:                684
Exogenous (1):                         authoritarian_t
High-dim controls (71):                e_b_1 e_b_2 e_b_3 e_b_4 e_b_1_m e_b_2_m e_b_3_m e_b_4_m e_a_1 e_a_2 e_a_3 e_a_4 m_b_a_b_d1_m m_b_a_b_d1 m_b_a_b_d2_m m_b_a_b_d2 m_b_a_b_d3_m m_b_a_b_d3 m_b_a_b_d4_m m_b_a_b_d4 m_b_a_a_d1_m m_b_a_a_d1 m_b_a_a_d2_m
                                       m_b_a_a_d2 m_b_a_a_d3_m m_b_a_a_d3 m_b_a_a_d4_m m_b_a_a_d4 m_base_female_m m_base_female m_base_high_pol_interest_m m_base_high_pol_interest m_base_high_grade_m m_base_high_grade m_base_mother_edu_m m_base_mother_edu
                                       m_base_father_edu_m m_base_father_edu m_base_plan_edu_m m_base_plan_edu m_base_high_risk_m m_base_high_risk m_base_high_trust_m m_base_high_trust m_base_vote_m m_base_vote m_base_AP_m m_base_AP m_base_H_m m_base_H
                                       m_base_FRP_m m_base_FRP m_base_V_m m_base_V m_base_SV_m m_base_SV m_base_Other_m m_base_Other m_base_Unknown_m m_base_Unknown tr_fe1 tr_fe2 tr_fe3 tr_fe4 tr_fe5 tr_fe6 tr_fe7 tr_fe8 tr_fe9 tr_fe10 tr_fe11
Selected controls (8):                 e_b_1 e_b_4 e_b_1_m e_b_4_m e_a_1 e_a_3 e_a_4 m_b_a_a_d1_m
Unpenalized controls (1):              _cons

Structural equation:

OLS using CHS lasso-orthogonalized vars
---------------------------------------------------------------------------------
                |               Robust
        auth_a2 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
authoritarian_t |   .3991803   .0592295     6.74   0.000     .2830926     .515268
---------------------------------------------------------------------------------

OLS using CHS post-lasso-orthogonalized vars
---------------------------------------------------------------------------------
                |               Robust
        auth_a2 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
authoritarian_t |   .4160591   .0566495     7.34   0.000     .3050281    .5270901
---------------------------------------------------------------------------------

OLS with PDS-selected variables and full regressor set
---------------------------------------------------------------------------------
                |               Robust
        auth_a2 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
authoritarian_t |   .4186355   .0567879     7.37   0.000     .3073332    .5299378
          e_b_1 |   -.257954   .1149442    -2.24   0.025    -.4832404   -.0326675
          e_b_4 |   .1994773   .0736319     2.71   0.007     .0551614    .3437933
        e_b_1_m |   .1827339   .0614564     2.97   0.003     .0622816    .3031861
        e_b_4_m |          0  (omitted)
          e_a_1 |  -.4507898   .1273368    -3.54   0.000    -.7003652   -.2012143
          e_a_3 |   .7119939    .074239     9.59   0.000     .5664882    .8574996
          e_a_4 |   1.417699   .0940761    15.07   0.000     1.233313    1.602085
   m_b_a_a_d1_m |  -.3885146   .1028077    -3.78   0.000    -.5900141   -.1870152
          _cons |   2.105272   .0581509    36.20   0.000     1.991299    2.219246
---------------------------------------------------------------------------------
Standard errors and test statistics valid for the following variables only:
    authoritarian_t
------------------------------------------------------------------------------

added macro:
           e(Controls) : "Lasso"

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
     auth_a2 |        684    2.630117    1.136007          1          5

added scalar:
      e(mean_depvar_c) =  2.630117
1.  (PDS/CHS) Selecting HD controls for dep var auth_b2...
Selected: e_b_1 e_b_3 e_b_4 e_a_1 m_b_a_a_d1_m m_base_FRP_m
2.  (PDS/CHS) Selecting HD controls for exog regressor authoritarian_t...
Selected: 


Estimation results:

Specification:
Regularization method:                 lasso
Penalty loadings:                      heteroskedastic
Number of observations:                684
Exogenous (1):                         authoritarian_t
High-dim controls (71):                e_b_1 e_b_2 e_b_3 e_b_4 e_b_1_m e_b_2_m e_b_3_m e_b_4_m e_a_1 e_a_2 e_a_3 e_a_4 m_b_a_b_d1_m m_b_a_b_d1 m_b_a_b_d2_m m_b_a_b_d2 m_b_a_b_d3_m m_b_a_b_d3 m_b_a_b_d4_m m_b_a_b_d4 m_b_a_a_d1_m m_b_a_a_d1 m_b_a_a_d2_m
                                       m_b_a_a_d2 m_b_a_a_d3_m m_b_a_a_d3 m_b_a_a_d4_m m_b_a_a_d4 m_base_female_m m_base_female m_base_high_pol_interest_m m_base_high_pol_interest m_base_high_grade_m m_base_high_grade m_base_mother_edu_m m_base_mother_edu
                                       m_base_father_edu_m m_base_father_edu m_base_plan_edu_m m_base_plan_edu m_base_high_risk_m m_base_high_risk m_base_high_trust_m m_base_high_trust m_base_vote_m m_base_vote m_base_AP_m m_base_AP m_base_H_m m_base_H
                                       m_base_FRP_m m_base_FRP m_base_V_m m_base_V m_base_SV_m m_base_SV m_base_Other_m m_base_Other m_base_Unknown_m m_base_Unknown tr_fe1 tr_fe2 tr_fe3 tr_fe4 tr_fe5 tr_fe6 tr_fe7 tr_fe8 tr_fe9 tr_fe10 tr_fe11
Selected controls (6):                 e_b_1 e_b_3 e_b_4 e_a_1 m_b_a_a_d1_m m_base_FRP_m
Unpenalized controls (1):              _cons

Structural equation:

OLS using CHS lasso-orthogonalized vars
---------------------------------------------------------------------------------
                |               Robust
        auth_b2 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
authoritarian_t |   .9171813   .0602448    15.22   0.000     .7991037    1.035259
---------------------------------------------------------------------------------

OLS using CHS post-lasso-orthogonalized vars
---------------------------------------------------------------------------------
                |               Robust
        auth_b2 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
authoritarian_t |   .9138588   .0569802    16.04   0.000     .8021797    1.025538
---------------------------------------------------------------------------------

OLS with PDS-selected variables and full regressor set
---------------------------------------------------------------------------------
                |               Robust
        auth_b2 | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
----------------+----------------------------------------------------------------
authoritarian_t |   .9199921   .0569393    16.16   0.000     .8083932    1.031591
          e_b_1 |  -.6059086   .1224875    -4.95   0.000    -.8459797   -.3658375
          e_b_3 |   .4211775   .0715192     5.89   0.000     .2810023    .5613526
          e_b_4 |   .9404343    .078862    11.93   0.000     .7858675    1.095001
          e_a_1 |  -.0406744   .1029702    -0.40   0.693    -.2424923    .1611435
   m_b_a_a_d1_m |  -.2231236     .08968    -2.49   0.013    -.3988931    -.047354
   m_base_FRP_m |   .3002195    .103008     2.91   0.004     .0983276    .5021114
          _cons |   2.096518   .0586096    35.77   0.000     1.981645    2.211391
---------------------------------------------------------------------------------
Standard errors and test statistics valid for the following variables only:
    authoritarian_t
------------------------------------------------------------------------------

added macro:
           e(Controls) : "Lasso"

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
     auth_b2 |        684    2.792398    1.046867          1          5

added scalar:
      e(mean_depvar_c) =  2.7923977

. 
.                         local varlist ///
> authoritarian_t   ///
>  

. cd "$replication"
C:\Users\andrkot\Dropbox (Frischsenteret)\Mili_madla\Democracy\Final submission\round4\replication\Results

. #delimit;
delimiter now ;
.         noisily esttab auth_a2_v_pds auth_b2_v_pds 
>                 using "Table_3.tex", 
>         style(tex) stats(mean_depvar_c N Controls, labels("Mean in sample" "N" "Controls")  fmt(2 0 2 0)) 
>         starlevels(† 0.10 * 0.05 ** 0.01) b(2) se(2) 
>         mtitles("Support for authoritarian rule" "Beliefs about support for authoritarian rule")
>                 keep(`varlist') order(`varlist')
>                 varlabels(
>                 authoritarian_t "Authoritarian treatment"
>         base_oth_r_att "Support for authoritarian rule in the room"
>                         )
>         prehead("\begin{tabular}{l*{12}{l}}" "\hline") posthead(\hline)
>         postfoot("\hline" "\end{tabular}")
>         replace;
(output written to Table_3.tex)

.         #delimit cr
delimiter now cr
.         
. 
. * ---------------------------------------------------------------------
. * 2.  Figures
. * ---------------------------------------------------------------------
. 
. graph drop _all

. set scheme stcolor

. 
. *ssc install sankey_plot
. *ssc install cibar
. 
. /***********************************************************************
>   Re-creates all figures and produces a logfile for
>   journal replication materials.
> ***********************************************************************/
. 
. 
. cd "$replication"
C:\Users\andrkot\Dropbox (Frischsenteret)\Mili_madla\Democracy\Final submission\round4\replication\Results

. graph set window fontface Arial 

. * ---------------------------------------------------------------------
. * FIGURES
. * ---------------------------------------------------------------------
. 
. *Figure 1: Support for authoritarian rule and beliefs
. 
. use "$data\replication_attrition.dta", clear 

. drop if room=="" /* Only for subjects where we have information about rooms*/ 
(130 observations deleted)

. label define disag_ag1_5b 1 "Strongly disagree"  2 "Disagree" 3 "Neither nor " 4 "Agree"  5 "Strongly agree"

. label values base_auth* disag_ag1_5b

. 
. twoway ///
> (histogram base_auth_a, frac discrete fcolor(white%30) lcolor(black) lwidth(thin) gap()) ///
> (histogram base_auth_b, frac discrete fcolor(%50) lcolor(%70) lwidth(thin) gap()), ///
>     title("", size(11-pt)) ///
>     ytitle("Fraction", size(10-pt)) ///
>     xtitle("", size(10-pt)) ///
>     legend(position(6) order(1 "Support for authoritarian rule" 2 "Beliefs") ///
>            ring(1) cols(1) region(lstyle(none)) size(medsmall)) ///
>     plotregion(lcolor(none)) ///
>     graphregion(fcolor(none) lcolor(none) ifcolor(none) ilcolor(none)) ///
>     xlabel(1 "Strongly disagree" 2 "Disagree" 3 "Neither/nor" 4 "Agree" 5 "Strongly agree", ///
>     angle() labsize(8-pt) nogrid) ///
>         ylabel(0 "0.0" 0.10 "0.1" 0.20 "0.2" 0.30 "0.3" 0.40 "0.4", /// 
>         nogrid labsize(8-pt)) ///       
>     scheme() xsize(4) ysize(4)  ///
>     name(Figure_1_color, replace)

. graph export "Figure_1.pdf", replace
file Figure_1.pdf saved as PDF format

.         tab base_auth_a 

    Authoritarian |
      orientation |      Freq.     Percent        Cum.
------------------+-----------------------------------
Strongly disagree |        161       18.99       18.99
         Disagree |        243       28.66       47.64
     Neither nor  |        260       30.66       78.30
            Agree |        152       17.92       96.23
   Strongly agree |         32        3.77      100.00
------------------+-----------------------------------
            Total |        848      100.00

.         tab base_auth_b

     Belief about |
    authoritarian |
     orientations |      Freq.     Percent        Cum.
------------------+-----------------------------------
Strongly disagree |         90       10.61       10.61
         Disagree |        236       27.83       38.44
     Neither nor  |        236       27.83       66.27
            Agree |        260       30.66       96.93
   Strongly agree |         26        3.07      100.00
------------------+-----------------------------------
            Total |        848      100.00

. 
. **************************************************************************************************************
. *Figure 2: Movements in support for authoritarian rule during bootcamp
. 
. use "$data\endline_new.dta", clear

. label var base_auth_a "Base: Support for authoritarian rule"

. label var auth_a "End: Support for authoritarian rule"

. label define disag_ag1_5b 1 "Strongly disagree"  2 "Disagree" 3 "Neither/nor " 4 "Agree"  5 "Strongly agree"

. label values auth_* base_auth* disag_ag1_5b 

. 
. *Variable equal to 1 for those with high levels in the room
. tab att_gr_3_3

oth_att_gro |
      up3== |
     2.0000 |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |        484       64.53       64.53
          1 |        266       35.47      100.00
------------+-----------------------------------
      Total |        750      100.00

. 
. * First Sankey Plot: Authoritarian Treatment
. 
. *Only including values where we have observations at baseline and endline (for those with high levels in the room)
. sankey_plot base_auth_a auth_a if att_gr_3_3==1 & base_auth_a!=. & auth_a!=., ///
>     wide xlabel(1 "Base" 2 "End", labsize(10-pt)) ///
>     title("(a) High levels in the room", size(11-pt)) ///
>     gap(0.1) noline colorpalette(d3) labsize(8-pt) labcolor(black) ///
>     graphregion(fcolor(none) lcolor(none) ifcolor(none) ilcolor(none)) ///
>     scheme() name(a, replace)  xsize(2.9) ysize(3)

. graph save a, replace
file a.gph saved

. 
. *The raw numbers
. tab  base_auth_a auth_a if att_gr_3_3==1 & base_auth_a!=. & auth_a!=., row col 

+-------------------+
| Key               |
|-------------------|
|     frequency     |
|  row percentage   |
| column percentage |
+-------------------+

Base: Support for |
    authoritarian |          End: Support for authoritarian rule
             rule | Strongly    Disagree  Neither/n      Agree  Strongly  |     Total
------------------+-------------------------------------------------------+----------
Strongly disagree |        35         14          7          1          0 |        57 
                  |     61.40      24.56      12.28       1.75       0.00 |    100.00 
                  |     71.43      19.18      11.29       2.22       0.00 |     23.65 
------------------+-------------------------------------------------------+----------
         Disagree |        11         34         12          5          3 |        65 
                  |     16.92      52.31      18.46       7.69       4.62 |    100.00 
                  |     22.45      46.58      19.35      11.11      25.00 |     26.97 
------------------+-------------------------------------------------------+----------
     Neither/nor  |         3         18         33         15          1 |        70 
                  |      4.29      25.71      47.14      21.43       1.43 |    100.00 
                  |      6.12      24.66      53.23      33.33       8.33 |     29.05 
------------------+-------------------------------------------------------+----------
            Agree |         0          6          8         20          5 |        39 
                  |      0.00      15.38      20.51      51.28      12.82 |    100.00 
                  |      0.00       8.22      12.90      44.44      41.67 |     16.18 
------------------+-------------------------------------------------------+----------
   Strongly agree |         0          1          2          4          3 |        10 
                  |      0.00      10.00      20.00      40.00      30.00 |    100.00 
                  |      0.00       1.37       3.23       8.89      25.00 |      4.15 
------------------+-------------------------------------------------------+----------
            Total |        49         73         62         45         12 |       241 
                  |     20.33      30.29      25.73      18.67       4.98 |    100.00 
                  |    100.00     100.00     100.00     100.00     100.00 |    100.00 

. 
. * Second Sankey Plot: Anti-authoritarian Treatment
. sankey_plot base_auth_a auth_a if att_gr_3_3==0 & base_auth_a!=. & auth_a!=., ///
>     wide xlabel(1 "Base" 2 "End", labsize(10-pt)) ///
>     title("(b) Not high levels in the room", size(11-pt)) ///
>     gap(0.1) noline colorpalette(d3) labsize(8-pt) labcolor(black) ///
>     graphregion(fcolor(none) lcolor(none) ifcolor(none) ilcolor(none)) ///
>     scheme() name(b, replace)  xsize(2.9) ysize(3)

. graph save b, replace 
file b.gph saved

. 
. * Combine both panels 
. graph combine a.gph b.gph, ///
>     graphregion(fcolor(none) lcolor(none) ifcolor(none) ilcolor(none)) ///
>     imargin(2 7 0 2) iscale(1.1)  xsize(7.7) ysize(3.8) ///  
>     name(Figure_2_color, replace)

. graph export "Figure_2.pdf", replace
file Figure_2.pdf saved as PDF format

. *The raw numbers
. tab  base_auth_a auth_a if att_gr_3_3==0 & base_auth_a!=. & auth_a!=., row col 

+-------------------+
| Key               |
|-------------------|
|     frequency     |
|  row percentage   |
| column percentage |
+-------------------+

Base: Support for |
    authoritarian |          End: Support for authoritarian rule
             rule | Strongly    Disagree  Neither/n      Agree  Strongly  |     Total
------------------+-------------------------------------------------------+----------
Strongly disagree |        68         11          5          1          0 |        85 
                  |     80.00      12.94       5.88       1.18       0.00 |    100.00 
                  |     66.02       9.32       3.62       1.47       0.00 |     19.50 
------------------+-------------------------------------------------------+----------
         Disagree |        30         61         40         11          0 |       142 
                  |     21.13      42.96      28.17       7.75       0.00 |    100.00 
                  |     29.13      51.69      28.99      16.18       0.00 |     32.57 
------------------+-------------------------------------------------------+----------
     Neither/nor  |         3         34         66         16          1 |       120 
                  |      2.50      28.33      55.00      13.33       0.83 |    100.00 
                  |      2.91      28.81      47.83      23.53      11.11 |     27.52 
------------------+-------------------------------------------------------+----------
            Agree |         2         10         24         35          5 |        76 
                  |      2.63      13.16      31.58      46.05       6.58 |    100.00 
                  |      1.94       8.47      17.39      51.47      55.56 |     17.43 
------------------+-------------------------------------------------------+----------
   Strongly agree |         0          2          3          5          3 |        13 
                  |      0.00      15.38      23.08      38.46      23.08 |    100.00 
                  |      0.00       1.69       2.17       7.35      33.33 |      2.98 
------------------+-------------------------------------------------------+----------
            Total |       103        118        138         68          9 |       436 
                  |     23.62      27.06      31.65      15.60       2.06 |    100.00 
                  |    100.00     100.00     100.00     100.00     100.00 |    100.00 

. 
. **************************************************************************************************************
. *Figure 3: Effects of the authoritarian treatment on the distribution of support for authoritarian rule and beliefs for the military sample.
. 
. 
. * Histogram: (a) Support for authoritarian rule
. twoway ///
>     (histogram auth_a2 if authoritarian_t==0, frac discrete fcolor(white%30) lcolor(black) lwidth(thin) gap()) ///
>     (histogram auth_a2 if authoritarian_t==1, frac discrete fcolor(%50) lcolor(black) lwidth(thin) gap()), ///
>     title("(a) Support for authoritarian rule", size(11-pt)) ///
>     ytitle("Fraction", size(10-pt)) ///
>     xtitle("", size(10-pt)) ///
>     legend(order(1 "Anti-authoritarian treatment" 2 "Authoritarian treatment") ///
>     pos(6) ring(1) cols(1) region(lstyle(none)) size(10-pt)) ///
>     plotregion(lcolor(white)) graphregion(fcolor(white) lcolor(white)) ///
>     xlabel(1 "Strongly disagree" 2 "Disagree" 3 "Neither nor" 4 "Agree" 5 "Strongly agree", angle() ///
>         labsize(8-pt) nogrid) ylabel(, nogrid angle(horizontal)) ///
>     ylabel(0 "0.0" 0.10 "0.1" 0.20 "0.2" 0.30 "0.3" 0.40 "0.4" 0.50 "0.5", /// 
>         nogrid labsize(8-pt)) xsize(4.5) ysize(4.1)   ///       
>     name(a, replace) 

. graph save a, replace
file a.gph saved

. graph export "Figure_3a.png", replace
file Figure_3a.png saved as PNG format

. 
. tab auth_a2 if authoritarian_t==0

      Support for |
    authoritarian |
    rule vignette |      Freq.     Percent        Cum.
------------------+-----------------------------------
Strongly disagree |         96       23.88       23.88
         Disagree |        107       26.62       50.50
     Neither/nor  |        121       30.10       80.60
            Agree |         69       17.16       97.76
   Strongly agree |          9        2.24      100.00
------------------+-----------------------------------
            Total |        402      100.00

. tab auth_a2 if authoritarian_t==1

      Support for |
    authoritarian |
    rule vignette |      Freq.     Percent        Cum.
------------------+-----------------------------------
Strongly disagree |         53       14.21       14.21
         Disagree |         93       24.93       39.14
     Neither/nor  |        118       31.64       70.78
            Agree |         86       23.06       93.83
   Strongly agree |         23        6.17      100.00
------------------+-----------------------------------
            Total |        373      100.00

. 
. * Histogram: (b) Beliefs about support
. twoway ///
>    (histogram auth_b2 if authoritarian_t==0, frac discrete fcolor(white%30) lcolor(black) lwidth(thin) gap()) ///
>     (histogram auth_b2 if authoritarian_t==1, frac discrete fcolor(%50) lcolor(black) lwidth(thin) gap()), ///
>     title("(b) Beliefs about support", size(11-pt)) ///
>     ytitle("Fraction", size(10-pt)) ///
>     xtitle("", size(10-pt)) ///
>     legend(order(1 "Anti-authoritarian treatment" 2 "Authoritarian treatment") ///
>     pos(6) ring(1) cols(1) region(lstyle(none)) size(10-pt)) ///
>     plotregion(lcolor(white)) graphregion(fcolor(white) lcolor(white)) ///
>     xlabel(1 "Strongly disagree" 2 "Disagree" 3 "Neither nor" 4 "Agree" 5 "Strongly agree", angle() ///
>         labsize(8-pt) nogrid) ylabel(, nogrid angle(horizontal)) ///
>     ylabel(0 "0.0" 0.10 "0.1" 0.20 "0.2" 0.30 "0.3" 0.40 "0.4" 0.50 "0.5", /// 
>         nogrid labsize(8-pt)) xsize(4.5) ysize(4.1)  ///        
>     name(b, replace)

. graph save b, replace
file b.gph saved

. graph export "Figure_3b.png", replace
file Figure_3b.png saved as PNG format

. 
. 
. * Combine both graphs with shared legend
. grc1leg a.gph b.gph, ///
>     ycommon xcommon ///
>     graphregion(fcolor(none) lcolor(none) ifcolor(none) ilcolor(none)) ///
>     imargin(0 0 0 0)  ///  
>     xsize(9) ysize(12) ///
>     scale(1.2) ///
>     name(Figure_3_color, replace)

. graph export "Figure_3.pdf", replace
file Figure_3.pdf saved as PDF format

. 
. tab auth_b2 if authoritarian_t==0

    Authoritarian |
 beliefs vignette |      Freq.     Percent        Cum.
------------------+-----------------------------------
Strongly disagree |         67       16.67       16.67
         Disagree |        181       45.02       61.69
     Neither/nor  |         93       23.13       84.83
            Agree |         55       13.68       98.51
   Strongly agree |          6        1.49      100.00
------------------+-----------------------------------
            Total |        402      100.00

. tab auth_b2 if authoritarian_t==1

    Authoritarian |
 beliefs vignette |      Freq.     Percent        Cum.
------------------+-----------------------------------
Strongly disagree |         16        4.29        4.29
         Disagree |         59       15.82       20.11
     Neither/nor  |        123       32.98       53.08
            Agree |        160       42.90       95.98
   Strongly agree |         15        4.02      100.00
------------------+-----------------------------------
            Total |        373      100.00

. 
. **************************************************************************************************************
. *Figure 4: Movements in support for authoritarian rule in the endline survey by treatment.
. 
. * First Sankey Plot: Authoritarian Treatment
. sankey_plot auth_a auth_a2 if authoritarian_t == 1 & base_auth_a != . & auth_a != ., ///
>     wide xlabel(1 "Before" 2 "After", labsize(10-pt)) ///
>     title("(a) Authoritarian treatment", size(11-pt)) ///
>     gap(0.1) noline colorpalette(d3) labsize(8-pt) labcolor(black) ///
>     graphregion(fcolor(none) lcolor(none) ifcolor(none) ilcolor(none)) ///
>         name(a, replace)  xsize(2.9) ysize(3)

. graph save a, replace
file a.gph saved

. 
. tab auth_a auth_a2 if authoritarian_t == 1 & base_auth_a != . & auth_a != ., row col

+-------------------+
| Key               |
|-------------------|
|     frequency     |
|  row percentage   |
| column percentage |
+-------------------+

 End: Support for |
    authoritarian |        Support for authoritarian rule vignette
             rule | Strongly    Disagree  Neither/n      Agree  Strongly  |     Total
------------------+-------------------------------------------------------+----------
Strongly disagree |        39         28          4          1          2 |        74 
                  |     52.70      37.84       5.41       1.35       2.70 |    100.00 
                  |     82.98      35.00       4.08       1.32       9.52 |     22.98 
------------------+-------------------------------------------------------+----------
         Disagree |         4         49         36          8          1 |        98 
                  |      4.08      50.00      36.73       8.16       1.02 |    100.00 
                  |      8.51      61.25      36.73      10.53       4.76 |     30.43 
------------------+-------------------------------------------------------+----------
     Neither/nor  |         2          3         49         29          4 |        87 
                  |      2.30       3.45      56.32      33.33       4.60 |    100.00 
                  |      4.26       3.75      50.00      38.16      19.05 |     27.02 
------------------+-------------------------------------------------------+----------
            Agree |         1          0          7         34         10 |        52 
                  |      1.92       0.00      13.46      65.38      19.23 |    100.00 
                  |      2.13       0.00       7.14      44.74      47.62 |     16.15 
------------------+-------------------------------------------------------+----------
   Strongly agree |         1          0          2          4          4 |        11 
                  |      9.09       0.00      18.18      36.36      36.36 |    100.00 
                  |      2.13       0.00       2.04       5.26      19.05 |      3.42 
------------------+-------------------------------------------------------+----------
            Total |        47         80         98         76         21 |       322 
                  |     14.60      24.84      30.43      23.60       6.52 |    100.00 
                  |    100.00     100.00     100.00     100.00     100.00 |    100.00 

. 
. 
. * Second Sankey Plot: Anti-authoritarian Treatment
. sankey_plot auth_a auth_a2 if authoritarian_t == 0 & base_auth_a != . & auth_a != ., ///
>     wide xlabel(1 "Before" 2 "After", labsize(10-pt)) ///
>     title("(b) Anti-authoritarian treatment", size(11-pt)) ///
>     gap(0.1) noline colorpalette(d3) labsize(8-pt) labcolor(black) ///
>     graphregion(fcolor(none) lcolor(none) ifcolor(none) ilcolor(none)) ///
>         name(b, replace)  xsize(2.9) ysize(3)

. graph save b, replace
file b.gph saved

. 
. tab auth_a auth_a2 if authoritarian_t == 0 & base_auth_a != . & auth_a != ., 

 End: Support for |
    authoritarian |        Support for authoritarian rule vignette
             rule | Strongly    Disagree  Neither/n      Agree  Strongly  |     Total
------------------+-------------------------------------------------------+----------
Strongly disagree |        68          5          4          0          3 |        80 
         Disagree |        15         66         13          3          0 |        97 
     Neither/nor  |         5         26         74         10          2 |       117 
            Agree |         1          3         16         44          1 |        65 
   Strongly agree |         0          0          3          4          3 |        10 
------------------+-------------------------------------------------------+----------
            Total |        89        100        110         61          9 |       369 

. 
. 
. * Combine both panels into one figure (scale(1.3)
. graph combine a.gph b.gph, ///
>     graphregion(fcolor(white) lcolor(white) ifcolor(white) ilcolor(white)) ///
>     imargin(0 0 0 0) iscale(1) ///  
>     name(Figure_4_color, replace)

. 
. * Export
. graph export "Figure_4.pdf", replace
file Figure_4.pdf saved as PDF format

. 
. 
. 
. **************************************************************************************************************
. *Figure 5: Difference across samples in support for authoritarian rule.
. use "$data\replication_genpop.dta", clear
(File created by user 'justin.dias' at Fri Jan 13 16:43:17 20)

. set scheme stcolor

. 
. * Set global font
. graph set window fontface "Arial"

. 
. keep auth_a no_t 

. keep  if no_t==1
(1,002 observations deleted)

. tempfile genpop

. save `genpop'
file C:\Users\andrkot\AppData\Local\Temp\ST_3e34_000001.tmp saved as .dta format

. 
. use "$data\endline_new.dta", clear

. keep base_auth_a

. rename base_auth_a auth_a

. gen mili=1

. append using `genpop'
(variable auth_a was byte, now float to accommodate using data's values)
(label disag_ag1_5 already defined)

. replace mili=0 if mili==.
(498 real changes made)

. 
. * Label definition for mili variable, if not already labeled
. label define mili_lbl 0 "Control group in general survey" 1 "Baseline answers in Military Sample", replace

. label values mili mili_lbl

. 
. 
. *CIBAR figure: Support for authoritarian rule
. cibar auth_a, over(mili) ///
>     barcolor(stblue%90 gs6%30) ///
>     ciopts(lcolor(black) lwidth(medthin)) ///
>     bargap(0) ///
>     graphopts( ///
>         title("", size(11-pt)) ///
>         ytitle("Support for authoritarian rule", size(10-pt)) ///
>       ylabel(1.00 "1.0" 1.50 "1.5" 2.00 "2.0" 2.50 "2.5" 3.00 "3.0", nogrid angle() labsize(8-pt)) ///          
>         xlabel(, nogrid labsize(8-pt)) ///
>         legend(order(1 "Control group in general survey" 2 "Baseline answers in military sample") ///
>                pos(6) ring(1) cols(1) bplacement(s) region(lstyle(none)) size(medsmall)) ///
>         graphregion(fcolor(white) lcolor(white) ifcolor(white) ilcolor(white)) ///
>         plotregion(lcolor(white)) ///
>         scheme() xsize(2.9) ysize(3)  ///
>         name(Figure_5_color, replace) ///
>     )

. graph export "Figure_5.pdf", replace
file Figure_5.pdf saved as PDF format

. bysort mili: ci mean auth_a

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-> mili = Control group in general survey

    Variable |        Obs        Mean    Std. err.       [95% conf. interval]
-------------+---------------------------------------------------------------
      auth_a |        498     2.64257    .0540243        2.536426    2.748714

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-> mili = Baseline answers in Military Sample

    Variable |        Obs        Mean    Std. err.       [95% conf. interval]
-------------+---------------------------------------------------------------
      auth_a |        859    2.590221    .0374877        2.516643      2.6638

. 
. 
. ***********************************************************************************************
. *Figure 6: Comparison of support for authoritarian rule by treatment in the general population.
. 
. use "$data\replication_genpop.dta", clear
(File created by user 'justin.dias' at Fri Jan 13 16:43:17 20)

. 
. * Set global font
. graph set window fontface "Arial"

. 
. *Bar chart with confidence intervals
. cibar auth_a, over(qsplit) ///
>     barcolor(stblue%100 stblue%50 stblue%20) ///
>     ciopts(lcolor(black) lwidth(medthin)) ///
>     bargap(0) ///
>     blfmt(%4.2f) ///
>     graphopts( ///
>         title("", size(11-pt)) ///
>         ytitle("Support for authoritarian rule", size(10-pt)) ///
>         ylabel(1.00 "1.0" 1.50 "1.5" 2.00 "2.0" 2.50 "2.5" 3.00 "3.0", nogrid angle(horizontal) labsize(8-pt)) ///
>         xlabel(, nogrid labsize(8-pt)) ///
>         legend(order(1 "Authoritarian treatment" 2 "Anti-authoritarian treatment" 3 "No treatment") ///
>                pos(6) ring(1) cols(1) bplacement(s) region(lstyle(none)) size(medsmall)) ///
>         graphregion(fcolor(none) lcolor(none) ifcolor(none) ilcolor(none)) ///
>         plotregion(lcolor(none)) ///
>         scheme() xsize(2.9) ysize(3)     ///
>         name(Figure_6_color, replace) ///
>     )

.         graph export "Figure_6.pdf", replace
file Figure_6.pdf saved as PDF format

. bysort qsplit: ci mean auth_a

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-> qsplit = Authoritarian treatment

    Variable |        Obs        Mean    Std. err.       [95% conf. interval]
-------------+---------------------------------------------------------------
      auth_a |        500       2.832    .0546033        2.724719    2.939281

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-> qsplit = Anti-authoritarian treatment

    Variable |        Obs        Mean    Std. err.       [95% conf. interval]
-------------+---------------------------------------------------------------
      auth_a |        502    2.458167    .0529307        2.354174    2.562161

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-> qsplit = No treatment

    Variable |        Obs        Mean    Std. err.       [95% conf. interval]
-------------+---------------------------------------------------------------
      auth_a |        498     2.64257    .0540243        2.536426    2.748714

. 
. graph close a b

. 
. log close
      name:  <unnamed>
       log:  C:\Users\andrkot\Dropbox (Frischsenteret)\Mili_madla\Democracy\Final submission\round4\replication\Results\replication_ajps_main.log
  log type:  text
 closed on:   4 Sep 2025, 09:58:07
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
